package com.zboot.zbootadmin.project.system.role.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zboot.zbootadmin.project.system.role.entity.SysRole;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 角色信息表 Mapper 接口
 * </p>
 *
 * @author zyt
 * @since 2020-07-18
 */
@Repository
@Mapper
public interface SysRoleMapper extends BaseMapper<SysRole> {

    /**
     *
     * @Description: 根据用户ID查询角色
     * 
     * @author: zyt
     * @date: 14:24 2020/11/1 
     * @param: [userId]
     * @return: java.util.List<com.zboot.zbootadmin.project.system.role.entity.SysRole>
     *
     */
    List<SysRole> selectRolePermissionByUserId(Long userId);
}
